<?php 
		require_once("../_inc/sessions.php"); 
		require_once("../_inc/functions.php");
		
		// Four steps to closing a session
		// (i.e. logging out)

		// 1. Find the session
		session_start();
		
		// 2. Unset all the session variables
		$_SESSION = array();
		// $_COOKIE = array();
		// 3. Destroy the session cookie
		// if(isset($_COOKIE[session_name()])) {
		// 	setcookie(session_name(), '', time()-28800, '/');
		// }
		// if(isset($_COOKIE['SESSION_ID'])) {
		// 	setcookie("SESSION_ID", '', 1262260800);
		// 	// setcookie("SESSION_ID", sha1($found_user['id'].$found_user['hpwd']), time()+28800);
		// }
		// 
		// 4. Destroy the session
		session_destroy();
		
		// echo "Logout Successfull";
		redirect_to(".");
		
?>